import axios from "@/utils/axios";
export default{
    getrole: () => axios.get("/roles/query"),
    delrole:(id)=>axios.delete(`/roles/${id}`),
    updaterole:(data)=>axios.put('/roles',data),
    addrole:(data)=>axios.post('/roles',data),
    permissionbyid:(id)=>axios.get(`/roles/selectPermissionByRid/${id}`),
    permission:(data)=>axios.post('/roles/savePermission',data)
}